#include <Tool>

Tool::Tool(QObject *parent)
    : State(parent)
{

}

Tool::~Tool()
{
    delete m_propertiesWidget;
}


QPointer<ToolCategory> Tool::toolCategory() const
{
    return m_toolCategory;
}

void Tool::setToolCategory(QPointer<ToolCategory> toolCategory)
{
    m_toolCategory = toolCategory;
}

Qt::CursorShape Tool::cursorShape() const
{
    return Qt::ArrowCursor;
}

const QIcon& Tool::icon() const
{
    return m_icon;
}

void Tool::setIcon(const QIcon &icon)
{
    m_icon = icon;
}

void Tool::onMousePress(QMouseEvent *pEvent)
{
}

void Tool::onMouseMove(QMouseEvent *pEvent)
{
}

void Tool::onMouseRelease(QMouseEvent *pEvent)
{
}

QPointer<QWidget> Tool::propertiesWidget() const
{
    return m_propertiesWidget;
}

void Tool::initPropertiesWidget()
{
}


